(PC-do-completion): Delete duplicates in the list of possible completions.
authorMichaël Cadilhac <michael.cadilhac@lrde.org>
Wed, 7 Mar 2007 12:47:15 +0000 (12:47 +0000)
committerMichaël Cadilhac <michael.cadilhac@lrde.org>
Wed, 7 Mar 2007 12:47:15 +0000 (12:47 +0000)
lisp/complete.el

index b56dc268c04145604be1ca0b678e718037a27e21..5b77f49ebdfe16613a6e5a08003f2323494b6990 100644 (file)
@@ -560,6 +560,9 @@ of `minibuffer-completion-table' and the minibuffer contents.")
                   (setq poss (cons (car p) poss))))
            (setq p (cdr p)))))
 
+      ;; If table had duplicates, they can be here.
+      (delete-dups poss)
+
       ;; Handle completion-ignored-extensions
       (and filename
            (not (eq mode 'help))